package org.anderground.internal.graphics.impl;

import java.awt.geom.GeneralPath;

import org.anderground.internal.graphics.abstaractions.AbstractPath;

public class AwtPath implements AbstractPath {

	GeneralPath path;

	public AwtPath() {
		path = new GeneralPath();
	}

	public AwtPath(AwtPath javapath) {
		this.path = javapath.getPath();
	}

	@Override
	public void lineTo(float x, float y) {
		path.lineTo(x, y);
	}

	@Override
	public void moveTo(float x, float y) {
		path.moveTo(x, y);
	}

	public GeneralPath getPath() {
		return path;
	}

	public void setPath(GeneralPath path) {
		this.path = path;
	}

}
